package com.kgc.cgapi.service;

import com.kgc.basic.util.ResponseMsg;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

public interface CGApi {

    @ResponseBody
    @RequestMapping("getCode")
    public String getCode(@RequestParam(name = "table") String table);

    @ResponseBody
    @RequestMapping("del")
    public ResponseMsg del(@RequestParam(name = "table") String table , @RequestParam(name = "code") String code);

    @RequestMapping("closeOrder")
    ResponseMsg closeOrder(@RequestParam(name = "table") String table , @RequestParam(name = "code") String code);

}
